//
//  NSBundle+SWAdd.m
//  QZMJ
//
//  Created by 腾程－ios1 on 17/2/23.
//  Copyright © 2017年 曾少伟. All rights reserved.
//

#import "NSBundle+SWAdd.h"

@implementation NSBundle (SWAdd)

+ (NSString *)getDocumentPath {
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    return [paths objectAtIndex:0];
}

+ (NSString *)getCachesPath {
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
    return [paths objectAtIndex:0];
}

+ (NSString *)getTemPath {
    return NSTemporaryDirectory();
}

+ (NSString *)getLibaryPath {
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
    return [paths objectAtIndex:0];
}

@end
